package com.hanson.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ContentRowHeight(15)
@HeadRowHeight(30)
public class UserBean implements Serializable {
    @ExcelIgnore
    private Integer id;

    @ExcelIgnore
    private String openId;

    @ExcelIgnore
    private String mpOpenId;

    @ExcelIgnore
    private String maOpenId;

    @ExcelIgnore
    private String accountName;

    @ColumnWidth(40)
    @ExcelProperty(value = "姓名", index = 0)
    private String userName;

    @ExcelIgnore
    private String nickName;

    @ColumnWidth(25)
    @ExcelProperty(value = "手机号码", index = 1)
    private String phone;

    @ExcelIgnore
    private String headImg;

    @ColumnWidth(25)
    @ExcelProperty(value = "国家", index = 3)
    private String country;

    @ColumnWidth(25)
    @ExcelProperty(value = "省份", index = 4)
    private String province;

    @ColumnWidth(25)
    @ExcelProperty(value = "地市", index = 5)
    private String city;

    @ExcelIgnore
    private Integer gender;

    @ColumnWidth(25)
    @ExcelProperty(value = "性别", index = 2)
    private String genderName;

    @ColumnWidth(25)
    @ExcelProperty(value = "用户类型", index = 6)
    private String userType;

    @ExcelIgnore
    private String password;

    @ColumnWidth(25)
    @ExcelProperty(value = "加入时间", index = 9)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    @ExcelIgnore
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    @ColumnWidth(25)
    @ExcelProperty(value = "积分", index = 7)
    private Integer score = 0;
    @ExcelIgnore
    private Integer money = 0;
    @ExcelIgnore
    private Integer isVip;
    @ExcelIgnore
    private Integer isSpread;

    @ExcelIgnore
    private String spreadMoneyReceiving = "0.0";

    @ExcelIgnore
    private String spreadMoneyReceived = "0.0";

    @ExcelIgnore
    private String userSign;

    @ExcelIgnore
    private Date signDate;

    @ExcelIgnore
    private String agentId;

    @ExcelIgnore
    private int serviceNumber;

    @ExcelIgnore
    private int serviceScore;

    @ExcelIgnore
    private int applyAgentStatus = -1;

    @ExcelIgnore
    private int applyExpertStatus = -1;

    @ExcelIgnore
    private String cityName;
    @ColumnWidth(25)
    @ExcelProperty(value = "余额", index = 8)
    private String webMoney;
    @ExcelIgnore
    private String search;
    @ExcelIgnore
    private String verifyCode;
    @ExcelIgnore
    private String identity;
    @ExcelIgnore
    private String newPwd;
    @ExcelIgnore
    private String newPwdOk;
    @ExcelIgnore
    private List<String> roles;
    @ExcelIgnore
    private Integer couponsNum;
    @ExcelIgnore
    private Integer isSync;
    @ExcelIgnore
    private Integer bestTeam;
}